package org.tio.examples.httpImpl.server;

import java.nio.channels.AsynchronousChannelGroup;
import java.nio.channels.AsynchronousServerSocketChannel;
import java.nio.channels.CompletionHandler;
import java.util.concurrent.ThreadPoolExecutor;

public class HttpImpl {
    
    private static String serverIp = "";
    private static int serverPort = 9999;
    
    private ThreadPoolExecutor tpe = null;
    
    public AsynchronousServerSocketChannel serverSocketChannel;
    
    private static CompletionHandler chImpl = new CompletionHandlerImpl();
    
    private AsynchronousChannelGroup channelGroup= null;

    public ThreadPoolExecutor getTpe() {
        return tpe;
    }

    public void setTpe(ThreadPoolExecutor tpe) {
        this.tpe = tpe;
    }

    public AsynchronousServerSocketChannel getServerSocketChannel() {
        return serverSocketChannel;
    }

    public void setServerSocketChannel(AsynchronousServerSocketChannel serverSocketChannel) {
        this.serverSocketChannel = serverSocketChannel;
    }

    public CompletionHandler getChImpl() {
        return chImpl;
    }


    public AsynchronousChannelGroup getChannelGroup() {
        return channelGroup;
    }

    public void setChannelGroup(AsynchronousChannelGroup channelGroup) {
        this.channelGroup = channelGroup;
    }
    
    
    
    
}
